<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta http-equiv='content-type' content="text/html;charset=UTF-8">
    <meta name="author" content="">

    <title>肉品溯源商城后台管理系统</title>
    <link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
    <link href="/dist/css/sb-admin-2.css" rel="stylesheet">
    <link href="/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

</head>

<body>

    <div id="wrapper">
        <#include "shopMenu.ftl">
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">商品模块</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            表单数据
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <form role="form" action="save" method="post" enctype="multipart/form-data">
                                        <div class="form-group">
                                            <label>生猪:</label>
                                            <select name='animalid' class="form-control">
                                                <#list animals as animal >
                                                    <option value="${animal.gid}">${animal.gid}</option>
                                                </#list>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label>公司:</label>
                                            <select name='compid' class="form-control">
                                            <#list companys as company >
                                                <option value="${company.gid}">${company.compname}</option>
                                            </#list>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label>产品类型:</label>
                                            <select name='typeid' class="form-control">
                                            <#list types as type >
                                                <option value="${type.gid}">${type.proctypename}</option>
                                            </#list>
                                            </select>
                                        </div>
										<div class="form-group">
                                            <label>生产时间</label><br/>
                                            <input name='processtime' id="test1" class="form-control">
                                        </div>
										<div class="form-group">
                                            <label>生产人员编号</label>
											<input name='processercode' class="form-control">
                                        </div>
										<div class="form-group">
                                            <label>检验结果类型</label>
                                            <select name='inspectresultcode' class="form-control">
                                                <option value="0">合格</option>
                                                <option value="1">良好</option>
                                                <option value="2">较好</option>
                                                <option value="3">不合格</option>
                                            </select>
                                        </div>
                                        <div class="form-group">
                                            <label>检验结果</label>
											<input name='inspectresult' class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>检验时间</label>
											<input name='inspecttime' id="test2" class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>检验台编号</label>
                                            <input name='inspectercode' class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>销售商家编号</label>
                                            <input name='salerid' class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>销售商家名称</label>
                                            <input name='salername' class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>单价</label>
                                            <input name='procprice' class="form-control">
                                        </div>
                                        <div class="form-group">
                                            <label>单位</label>
                                            <input value="斤" class="form-control" disabled="disabled">
                                        </div>

                                        <input type="hidden" name='procunit' value="斤" class="form-control">
                                        <input type="hidden" name='procdiscount' value="1" class="form-control" >

                                        <div class="form-group">
                                            <label>销售截止日期</label>
                                            <input name='selledtime' id="test3" class="form-control">
                                        </div>

                                        <div class="form-group">
                                            <label>商品名称</label>
                                            <input name='productname' class="form-control" >
                                        </div>

                                        <div class="form-group">
                                            <label>商品库存</label>
                                            <input name='proccount' class="form-control" >
                                        </div>

                                        <div class="form-group">
                                            <label>商品描述</label>
                                            <input name='prodesc'  class="form-control" >
                                        </div>

                                        <div class="form-group">
                                            <label>商品缩略图</label>
                                            <input type="file" name='littlePic'>
                                        </div>

                                        <div class="form-group">
                                            <label>商品滚动图1</label>
                                            <input type="file" name='rollPic1'>
                                        </div>

                                        <div class="form-group">
                                            <label>商品滚动图2</label>
                                            <input type="file" name='rollPic2'>
                                        </div>

                                        <div class="form-group">
                                            <label>商品滚动图3</label>
                                            <input type="file" name='rollPic3'>
                                        </div>

                                        <div class="form-group">
                                            <label>商品滚动图4</label>
                                            <input type="file" name='rollPic4'>
                                        </div>

                                        <div class="form-group">
                                            <label>商品详情图1</label>
                                            <input type="file" name='detailPic1'>
                                        </div>

                                        <div class="form-group">
                                            <label>商品详情图2</label>
                                            <input type="file" name='detailPic2'>
                                        </div>

										<input type="submit" class='btn btn-outline btn-primary btn-lg btn-block' value="提交">
									</form>
                                </div>
                                
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <script src="../vendor/jquery/jquery.min.js"></script>
    <script src="../vendor/bootstrap/js/bootstrap.min.js"></script>
    <script src="../vendor/metisMenu/metisMenu.min.js"></script>
    <script src="../dist/js/sb-admin-2.js"></script>
    <script src="/laydate/laydate.js"></script>
    <script type="text/javascript" charset="UTF-8">
        //时间选择组件
        laydate.render({
            elem: '#test1' //指定元素
        });
        laydate.render({
            elem: '#test2' //指定元素
        });
        laydate.render({
            elem: '#test3' //指定元素
        });
    </script>

</body>

</html>
